package com.gzx.plugin.tjzy.feign.liaison.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gzx.tjzy.feign.req.liaison.GzxDebtorLiaisonReqDto;
import org.apache.ibatis.annotations.Insert;

import java.util.List;

/**
 * @author zjt
 * @description
 * @since 2025/2/13 09:59
 */
public interface GzxDebtorLiaisonFeignMapper extends BaseMapper<GzxDebtorLiaisonReqDto> {

    /**
     * 批量新增三方联系人
     *
     * @param batchSql
     */
    @Insert("<script>" +
            "INSERT ignore INTO gzx_debtor_liaison (" +
            "project_code,debtor_card_id,relationship,liaison_name,liaison_phone,work_address,phone_source," +
            "phone_status,last_call_time,remark,tenant_id,create_time) " +
            "VALUES ${batchSql}" +
            "</script>")
    void insertBatch(String batchSql);
}
